﻿using System.Configuration;

namespace SPSDeploy.Extensions.Configuration
{
    /// <summary>
    /// Mapping element
    /// </summary>
    public class MappingElement : ConfigurationElement
    {

        #region Properties
        /// <summary>
        /// Mapping expression
        /// </summary>
        [ConfigurationProperty("expression", IsKey = true)]
        public string Expression
        {
            get
            {
                return (string)this["expression"];
            }
        }

        /// <summary>
        /// Mapping attribute
        /// </summary>
        [ConfigurationProperty("attribute")]
        public string Attribute
        {
            get
            {
                return (string)this["attribute"];
            }
        }

        /// <summary>
        /// Mapping value
        /// </summary>
        [ConfigurationProperty("value")]
        public string Value
        {
            get
            {
                return (string)this["value"];
            }
        }
        #endregion

    }
}